﻿using System;
using System.Data;

namespace msBsc.WebUi
{
    public partial class Index3 : msBsc.Cls.BPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadGoodslist("00");
            }
        }

        private void loadGoodslist(string _strPageNo)
        {

            msBsc.WebUi.Code.PageHtmlGet ocart = new msBsc.WebUi.Code.PageHtmlGet();
            string strjsontem1 = ocart.GetPageJson(_strPageNo);
            this.ExecJScript(@" var _data= " + strjsontem1 + @" ;  
    jQuery.loadHtml('/Template/MallPage" + _strPageNo + @".html?rm="+GetRadomString()+@"').done(function (_sRtHtml) {   
        var tpl = HtmlUtil.htmlDecode(_sRtHtml);
        laytpl(tpl).render(_data, function (render) {
            $('#pcontent').empty().html(render);
        });
    }); 
            ");
        }

        public override void DoAction()
        {
            if (this.strAction == "loadBrandlistdata")
            {
                //this.ExecJScript("loadSetBrand('" + this.GetParamHtValue("HOT_LEVEL") + "','" + msBsc.AppLogic.Cfg.HttpTools.stringToJson(LoadBrandListContent(this.GetParamHtValue("HOT_LEVEL"), 4).ToString()) + "');");
            }
        }
    }
}